Reducer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 5
c 0
b 0
f 0
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A _test 0 3 1
1
import ReducerClass from '../ReducerClass'
2
3
4
it('test action type', () => {
0 ignored issues
show
Bug introduced by
The variable it was not defined.
Loading history...
5
  class BaseReducer {
6
    static test(state) {
7
      return state
8
    }
9
  }
10
11
  class Reducer extends BaseReducer{
0 ignored issues
show
introduced by
Missing space before opening brace.
Loading history...
12
    static _test(state) {
13
      return state
14
    }
15
  }
16
17
  ReducerClass('test')(Reducer)
18
19
  expect(Reducer.test.actionType).toEqual('TEST__TEST')
0 ignored issues
show
Bug introduced by
The variable expect was not defined.
Loading history...
20
  expect(Reducer._test.actionType).toBeUndefined()
0 ignored issues
show
Bug introduced by
The variable expect was not defined.
Loading history...
21
})
22